﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Threading.Tasks;
#if NET45
using TuesPechkin;
#else
using DinkToPdf;
#endif

namespace JESAI.HtmlTemplate.Pdf
{
    [TypeConverter(typeof(ExpandableObjectConverter))]
    public class PdfPaperSize
    {
        private PdfPaperSize()
        {

        }
        public PdfPaperSize(string width,string height)
        {
            pechkinPaperSize = new PechkinPaperSize(width,height);
        }

        public PdfPaperSize(int width, int height) 
        {
            pechkinPaperSize = new PechkinPaperSize(width.ToString(), height.ToString());
        }

        public PechkinPaperSize pechkinPaperSize;
    }
}
